import request from "@/utils/request";

export default {
  getNotices() {
    return request({
      url: `/notice/list`,
      method: "get",
    });
  },
  addNotice(notice) {
    return request({
      url: `/notice`,
      method: "post",
      data: notice,
    });
  },

  deleteNotice(id) {
    return request({
      url: `/notice/${id}`,
      method: `delete`,
    });
  },
};
